<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
%>
<jsp:include page="../../import.jsp" flush="true" />
<div id="accordion" style="width:99%;height:100%;">
	<s:iterator value="rb.resultList" id="m" status="cust_stat">  
		<s:if test="#m.CHILD>0 && #m.PID>-1"> 
			<div class="menu_title">
			<s:if test="#m.ICON==0"></s:if><s:else><img src='<s:property value="ICON"/>'  border=0> </s:else>
			<s:property value="MENUNAME"/>
			</div>
			<div style="height:200px;display:none;overflow:-moz-scrollbars-vertical;overflow-y:scroll;overflow-x:hidden;" class="menu_content" >
				<s:iterator value="rb.resultList" id="v" status="cust_stat"> 
						<s:if test="#v.PID==#m.ID"> 
						<div class="menu_data"  >
							<IMG SRC="../lib/image/line_1.gif" BORDER="0">&nbsp;<s:property value="MENUNAME"/><span style="display:none"><s:property value="LINKURL" escape="false"/></span>
						</div>
						</s:if>
				</s:iterator> 
			</div>
		</s:if>
	</s:iterator> 			
<div>
<SCRIPT LANGUAGE="JavaScript">
$('.menu_content:first').show();
$('.menu_title').click(function(){
	$('.menu_content').hide();
	$(this).next().show('slow');
});
var last;
$('.menu_data').click(function(){
	if(last!=null){
		$(last).children('img').attr("src","../lib/image/line_1.gif");
		$(last).css({'background-color':'','color':''});
	}
	last = this;
	$(this).css({'background-color':'#0068AE','color':'#ffffff'});
	$(this).children('img').attr("src","../lib/image/line_2.gif");
	var _url = $(this).children('span').html();
	if(top.reLinkMainFrame)
		top.reLinkMainFrame(_url.replace(/\amp;/g,''));
});
</SCRIPT>

